package com.lnj.messages.utiles;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ProductUserBehavior {
    private Long userId;//用户id
    private Long productId;//商品id
    private Boolean view;//行为类型 1：浏览
    private Boolean purchase;//行为类型 2：购买
    private Boolean favorite;//行为类型 3：收藏
    private Double score;//评分

    public ProductUserBehavior(Long userId, Long productId) {
        this.userId = userId;
        this.productId = productId;
    }
}
